home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 24
/
Amiga Format AFCD24 (Feb 1998, Issue 108).iso
/
-seriously_amiga-
/
shareware
/
programming
/
c
/
amivogl-mdev
/
amivogl-mdev.lha
/
src
/
valloc.c
< prev
next >
Wrap
C/C++ Source or Header
|
1994-04-12
|
381b
|
22 lines
#include "vogl.h"
/*
* vallocate
*
* Allocate some memory, barfing if malloc returns NULL.
*/
char * vallocate(unsigned size)
{
char *p, buf[60];
if ((p = (char *)malloc(size)) == (char *)0) {
sprintf(buf,"vallocate: request for %d bytes returned NULL", size);
verror(buf);
}
return (p);
}
/* ------------------------------------------------------------------------ */